package com.hch.netty.nacos.entity;

import java.io.Serializable;

/**
 * @Author: HeCongHui
 * @Time :2021/12/14 9:34
 */
public class AgreementEntity implements Serializable {

    /**
     * 0为生产者  1为消费者
     */
    private Integer type;


    /**
     * 服务id
     */
    private String serviceId;

    /**
     * 服务地址
     */
    private String address;

    public AgreementEntity(Integer type, String serviceId, String address) {
        this.type = type;
        this.serviceId = serviceId;
        this.address = address;
    }

    public AgreementEntity() {
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getServiceId() {
        return serviceId;
    }

    public void setServiceId(String serviceId) {
        this.serviceId = serviceId;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {

        this.address = address;
    }

    @Override
    public String toString() {
        return "AgreementEntity{" +
                "type=" + type +
                ", serviceId='" + serviceId + '\'' +
                ", address='" + address + '\'' +
                '}';
    }
}
